import 'package:shared_preferences/shared_preferences.dart';

class Storage{

  static Future<void> setString(key, vlue) async{
    SharedPreferences sp = await SharedPreferences.getInstance();
    sp.setString(key, vlue);
  }

  static Future<String> getString(key) async{
    SharedPreferences sp = await SharedPreferences.getInstance();
    return sp.getString(key);
  }

  static Future<void> remove(key) async{
    SharedPreferences sp = await SharedPreferences.getInstance();
    sp.remove(key);
  }

  static Future<void> clear() async{
    SharedPreferences sp = await SharedPreferences.getInstance();
    sp.clear();
  }

}